package com.kjs.web.dao.mapper;

import com.kjs.web.pojo.Customers;
import com.kjs.web.pojo.CustomersExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author chenxin@chensanjin.xin
 * @date 2018/10/16 10:09
 */
@Mapper
public interface ICustomersMapper extends IBaseMapper<Customers, Integer> {

    Customers getByUserNameAndPwd(Customers customers);

    int countByExample(CustomersExample example);

    int deleteByExample(CustomersExample example);

    int insertSelective(Customers record);

    List<Customers> selectByExample(CustomersExample example);

    Customers getByTelPhone(@Param("telPhone") String telPhone);

    int updateByExampleSelective(@Param("record") Customers record, @Param("example") CustomersExample example);

    int updateByExample(@Param("record") Customers record, @Param("example") CustomersExample example);

    int updateByPrimaryKeySelective(Customers record);

    int updatePwdById(Customers customers);

    void updateAliPayIdById(Customers customers);

    void updateWechatIdById(Customers customers);

    void updateTelPhoneById(Customers customers);

    int updateNickNameAndSexById(Customers customers);

    void updateAvatarById(Customers customers);
}
